<?php
namespace soa\express\express;
use soa\client;

/**
 * Class brand
 * @package soa\express\express
 */
class push extends client
{

    /**
     * 服务地址
     * @var string
     */
    public $service_url = 'http://express.core.kuaidihelp.com/';

    /**
     * 服务名称
     * @var string
     */
    protected $service_name = 'kuaidihelp_express';


    /**
     * 关闭订阅
     */
    public function close_push_express($user_id, $imei, $type, $no, $brand)
    {
        return $this->get('v1/express/push/close_push_express', compact('user_id', 'imei', 'type', 'no', 'brand'));
    }

    /**
     * 添加查件记录到订阅表与推送表
     */

    public function add_push_express($user_id, $no, $brand, $imei, $md5, $status = "", $type = 'mobile')
    {
        return $this->get('v1/express/push/add_push_express', array('user_id' => $user_id, 'no' => $no, 'brand' => $brand, 'imei' => $imei, 'md5' => $md5, 'status' => $status, 'type' => $type));
    }
}